<?php
include_once "QueryDAO.php";
/**
 * Description of RandomizerDAO
 *
 * @author Ronicus
 */
class RandomizerDAO extends QueryDAO {
    function randomCurrentActivity(){
        $query = "select current_activity from scene_current_activity";
        return $this->chooseRandom($query,"current_activity");
    }
    function randomFutureActivity(){
        $query = "select future_activity from scene_future_activity";
        return $this->chooseRandom($query,"future_activity");
    }
    function randomRecentActivity(){
        $query = "select recent_activity from scene_recent_activity";
        return $this->chooseRandom($query,"recent_activity");
    }
    function randomThought(){
        $query = "select thought from thoughts";
        return $this->chooseRandom($query,"thought");
    }
    function randomNoun(){
        $query = "select noun from noun";
        return $this->chooseRandom($query,"noun");
    }
    function randomMemory(){
        $query = "select memory from remember";
        return $this->chooseRandom($query,"memory");
    }
    function randomDetectiveActivity(){
        $query = "select detective_activity from detective_activities";
        return $this->chooseRandom($query,"detective_activity");
    }
    function randomCondition(){
        $query = "select appearance from personal_condition";
        return $this->chooseRandom($query,"appearance");
    }
    function randomView(){
        $query = "select view from scene_view";
        return $this->chooseRandom($query,"view");
    }
    function randomWeather(){
        $query = "select conditions from scene_weather";
        return $this->chooseRandom($query,"conditions");
    }
    function randomTime(){
        $query = "select time from scene_time";
        return $this->chooseRandom($query,"time");
    }
    function randomWeapon(){
        $query = "select weapon from weapons";
        return $this->chooseRandom($query,"weapon");
    }
}
?>
